package com.dc.bean.model;

public class BaseModel {
    //程序是否执行成功，code=1，程序执行成功，反之执行失败
    private int code;
    //错误消息提醒
    private String massage;
    //数据源
    private Object data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("BaseModel{");
        sb.append("code=").append(code);
        sb.append(", massage='").append(massage).append('\'');
        sb.append(", data=").append(data);
        sb.append('}');
        return sb.toString();
    }
}
